Remove deprecated code: GdkPixbuf
authorJavier Jardón <javierjc1982@gmail.com>
Sat, 10 Oct 2009 15:35:28 +0000 (17:35 +0200)
committerJavier Jardón <jjardon@gnome.org>
Sun, 2 May 2010 23:49:25 +0000 (01:49 +0200)
gdk-pixbuf/gdk-pixbuf-core.h
gdk-pixbuf/gdk-pixbuf.c
gdk-pixbuf/gdk-pixbuf.symbols
gdk-pixbuf/make-inline-pixbuf.c

index b2563809ed3845f77b736939d778696e9af464ac..c6d5272cc5d9453f7272ffa39ac5cc5f37fdd7c8 100644 (file)
@@ -84,13 +84,6 @@ GQuark gdk_pixbuf_error_quark (void);
 
 GType gdk_pixbuf_get_type (void) G_GNUC_CONST;
 
-/* Reference counting */
-
-#ifndef GDK_PIXBUF_DISABLE_DEPRECATED
-GdkPixbuf *gdk_pixbuf_ref      (GdkPixbuf *pixbuf);
-void       gdk_pixbuf_unref    (GdkPixbuf *pixbuf);
-#endif
-
 /* GdkPixbuf accessors */
 
 GdkColorspace gdk_pixbuf_get_colorspace      (const GdkPixbuf *pixbuf);
index 349c98a1c63b3ac961d694f058a9aa97438ff512..71e0c61e9a64964c152a52d0a80658e280eeebdb 100644 (file)
@@ -181,39 +181,6 @@ gdk_pixbuf_finalize (GObject *object)
         
         G_OBJECT_CLASS (gdk_pixbuf_parent_class)->finalize (object);
 }
-\f
-
-/**
- * gdk_pixbuf_ref:
- * @pixbuf: A pixbuf.
- *
- * Adds a reference to a pixbuf. 
- *
- * Return value: The same as the @pixbuf argument.
- *
- * Deprecated: 2.0: Use g_object_ref().
- **/
-GdkPixbuf *
-gdk_pixbuf_ref (GdkPixbuf *pixbuf)
-{
-        return (GdkPixbuf *) g_object_ref (pixbuf);
-}
-
-/**
- * gdk_pixbuf_unref:
- * @pixbuf: A pixbuf.
- *
- * Removes a reference from a pixbuf. 
- *
- * Deprecated: 2.0: Use g_object_unref().
- **/
-void
-gdk_pixbuf_unref (GdkPixbuf *pixbuf)
-{
-        g_object_unref (pixbuf);
-}
-
-\f
 
 /* Used as the destroy notification function for gdk_pixbuf_new() */
 static void
index 2e2548df1e452c2a484233507fdbe0fcb50df2b7..93885956ead2aba82c3e1522b58c36a2623b5ede 100644 (file)
 #if IN_FILE(__GDK_PIXBUF_C__)
 gdk_pixbuf_error_quark
 gdk_pixbuf_get_type G_GNUC_CONST
-#ifndef GDK_PIXBUF_DISABLE_DEPRECATED
-gdk_pixbuf_ref
-gdk_pixbuf_unref
-#endif
 gdk_pixbuf_new
 gdk_pixbuf_get_bits_per_sample
 gdk_pixbuf_get_colorspace
index f100820f7f35c6420bc74850d9ad39b74c47125f..e2e1f6100d554bf83ee239fa83ad2e0a1134bfd7 100644 (file)
@@ -219,7 +219,7 @@ main (int argc, char **argv)
 
       output_pixbuf (outfile, ext_symbols, argv[i], pixbuf);
       
-      gdk_pixbuf_unref (pixbuf);
+      g_object_unref (pixbuf);
       
       i += 2;
     }